package shoppingmall.manage.dto;

import shoppingmall.manage.pojo.CommodityStandard;

import java.util.List;

/**
 * 商品一些属性类，用于返回数据给前端(对Commodity的一些属性做了修改添加)
 */
public class CommodityVO {

    private int commodityId;  //商品id
    private String commodityName;  //商品名称
    private String commodityDescription;  //商品描述
    private float commodityDiscount;  //商品折扣
    private int commoditySales;  //商品销量
    private int commoditySaleMoney;  //商品销售额
    private int commodityCategoryId;  //商品分类id
    private String commodityImgs;  //商品图片地址字符串集合
    private String createTime;  //商品创建时间
    private String updateTime;  //商品更新时间
    private String commodityCategoryName;  //商品分类名称
    private List<CommodityStandard> commodityStandardList;  //商品规格集合

    public CommodityVO() {
    }
    public CommodityVO(int commodityId, String commodityName, String commodityDescription, float commodityDiscount, int commoditySales, int commoditySaleMoney, int commodityCategoryId, String commodityImgs, String createTime, String updateTime, String commodityCategoryName, List<CommodityStandard> commodityStandardList) {
        this.commodityId = commodityId;
        this.commodityName = commodityName;
        this.commodityDescription = commodityDescription;
        this.commodityDiscount = commodityDiscount;
        this.commoditySales = commoditySales;
        this.commoditySaleMoney = commoditySaleMoney;
        this.commodityCategoryId = commodityCategoryId;
        this.commodityImgs = commodityImgs;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.commodityCategoryName = commodityCategoryName;
        this.commodityStandardList = commodityStandardList;
    }

    public int getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(int commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getCommodityDescription() {
        return commodityDescription;
    }

    public void setCommodityDescription(String commodityDescription) {
        this.commodityDescription = commodityDescription;
    }

    public float getCommodityDiscount() {
        return commodityDiscount;
    }

    public void setCommodityDiscount(float commodityDiscount) {
        this.commodityDiscount = commodityDiscount;
    }

    public int getCommoditySales() {
        return commoditySales;
    }

    public void setCommoditySales(int commoditySales) {
        this.commoditySales = commoditySales;
    }

    public int getCommoditySaleMoney() {
        return commoditySaleMoney;
    }

    public void setCommoditySaleMoney(int commoditySaleMoney) {
        this.commoditySaleMoney = commoditySaleMoney;
    }

    public int getCommodityCategoryId() {
        return commodityCategoryId;
    }

    public void setCommodityCategoryId(int commodityCategoryId) {
        this.commodityCategoryId = commodityCategoryId;
    }

    public String getCommodityImgs() {
        return commodityImgs;
    }

    public void setCommodityImgs(String commodityImgs) {
        this.commodityImgs = commodityImgs;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCommodityCategoryName() {
        return commodityCategoryName;
    }

    public void setCommodityCategoryName(String commodityCategoryName) {
        this.commodityCategoryName = commodityCategoryName;
    }

    public List<CommodityStandard> getCommodityStandardList() {
        return commodityStandardList;
    }

    public void setCommodityStandardList(List<CommodityStandard> commodityStandardList) {
        this.commodityStandardList = commodityStandardList;
    }
}
